import request from '../utils/request'

//
/**
 * 录入人脸信息
 * @param{
 *     userId:
 *     url:
 * }
 */
export function saveFaceDatabase(data) {
    return request({
        url: 'fras/ad/facedatabase/save',
        method: 'post',
        data
    })
}


/**
 * 删除人脸
 * @param userid
 *
 */
export function deleteFaceDatabase(id) {
    return request({
        url: `fras/ad/facedatabase/delete/${id}`,
        method: 'post',
    })
}

/**
 * 查询单个用户人脸库信息及人脸修改记录
 * @param userid
 *
 */
export function getOneUserFaceByUserId(id) {
    return request({
        url: `fras/ad/facedatabase/getOneUserFaceByUserId/${id}`,
        method: 'post',

    })
}

/**
 * 查询人脸库信息
 * @param FaceDatabaseEntityId
 *
 */
export function getFaceDatabaseInfo(id) {
    return request({
        url: `fras/ad/facedatabase/info/${id}`,
        method: 'post',

    })
}


/**
 * 审核人脸照片
 * @param FaceDatabaseEntityId
 * @param status
 */
export function reviewFacePhotos(data) {
    return request({
        url: `fras/ad/facedatabase/reviewFacePhotos`,
        method: 'post',
        data
    })
}


/**
 * 查询用户人脸库列表
 *
 */
export function getFaceDateInfoList() {
    return request({
        url: `fras/ad/facedatabase/allFaceList`,
        method: 'post',

    })
}


/**
 * 查询人脸未审核列表
 *
 */
export function getNotApprovedFace() {
    return request({
        url: `fras/ad/facedatabase/getNotApprovedFace`,
        method: 'post',

    })
}
